using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Scenario_Editor.WR2TerrainLoader
{
     class IDXFile
    {
        int numberOfIndices;
        Block[] blocks = new Block[64];

        internal static IDXFile FromStream(BinaryReader br, int[] numberOfPolygonsPerBlock)
        {
            IDXFile idxFile = new IDXFile();
            idxFile.numberOfIndices = br.ReadInt32();

            for (int i = 0; i < idxFile.numberOfIndices; i++)
            {

            }

            return idxFile;
        }

        struct Block
        {
            int offset;
            List<short> indices;
            public Block(int offset, List<short> indices)
            {
                this.offset = offset;
                this.indices = new List<short>(indices);
            }
 
        }

        
    }
}
